<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="grid-wrap">
    <table data-id="grid"></table>
</div>
<div data-id="news_tb" class="nsdb">
    <a data-href="${pageContext.request.contextPath}/app/api/ebom/toAdd" data-key="add"
       iconCls="fa fa-plus fa-lg"
       plain="true">新增装配结构</a>
    <a data-href="${pageContext.request.contextPath}/app/api/ebom/toSearch" data-key="search"
       iconCls="fa fa-search fa-lg"
       plain="true">搜索</a>
    <a data-href="#" data-key="search_all" iconCls="fa fa-refresh fa-lg" plain="true">搜索全部</a>
</div>

<div data-id="user_list_btn">
    <shiro:hasPermission name="lab:data:index">
        <a data-href="${pageContext.request.contextPath}/app/api/lab/index" data-id="{{id}}" data-target="link"
           data-param="?eBomId={{id}}" data-key="work" iconCls="fa fa-hotel fa-lg" plain="true">执行工艺实验</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="lab:data:history">
        <a data-href="${pageContext.request.contextPath}/app/api/lab/labHistory" data-id="{{id}}"
           data-param="?id={{id}}"
           data-target="link"
           data-key="history" iconCls="fa fa-history fa-lg" plain="true">工艺历史</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="ebom:data:recycle">
        <a data-href="${pageContext.request.contextPath}/app/api/ebom/recycle" data-id="{{id}}" data-key="recycle"
           iconCls="fa fa-recycle fa-lg" plain="true">回收</a>
    </shiro:hasPermission>
    <%--<shiro:hasPermission name="ebom:data:export">--%>
        <%--<a data-href="${pageContext.request.contextPath}/app/api/ebom/export" data-id="{{id}}" data-key="export"--%>
           <%--iconCls="fa fa-download fa-lg" plain="true">结构导出</a>--%>
    <%--</shiro:hasPermission>--%>
    <shiro:hasPermission name="ebom:all:export">
        <a data-href="${pageContext.request.contextPath}/app/api/ebom/packageEBOM" data-id="{{id}}" data-key="exportAll"
           iconCls="fa fa-briefcase fa-lg" plain="true">导出报告</a>
    </shiro:hasPermission>
    <a data-href="#" data-id="{{id}}" data-key="view" iconCls="fa fa-eye fa-lg" plain="true">详情查看</a>
</div>